package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class TeachingGroupExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TeachingGroupExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGroupidIsNull() {
            addCriterion("GroupId is null");
            return (Criteria) this;
        }

        public Criteria andGroupidIsNotNull() {
            addCriterion("GroupId is not null");
            return (Criteria) this;
        }

        public Criteria andGroupidEqualTo(Integer value) {
            addCriterion("GroupId =", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotEqualTo(Integer value) {
            addCriterion("GroupId <>", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThan(Integer value) {
            addCriterion("GroupId >", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidGreaterThanOrEqualTo(Integer value) {
            addCriterion("GroupId >=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThan(Integer value) {
            addCriterion("GroupId <", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidLessThanOrEqualTo(Integer value) {
            addCriterion("GroupId <=", value, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidIn(List<Integer> values) {
            addCriterion("GroupId in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotIn(List<Integer> values) {
            addCriterion("GroupId not in", values, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidBetween(Integer value1, Integer value2) {
            addCriterion("GroupId between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andGroupidNotBetween(Integer value1, Integer value2) {
            addCriterion("GroupId not between", value1, value2, "groupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidIsNull() {
            addCriterion("teachingGroupId is null");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidIsNotNull() {
            addCriterion("teachingGroupId is not null");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidEqualTo(Integer value) {
            addCriterion("teachingGroupId =", value, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidNotEqualTo(Integer value) {
            addCriterion("teachingGroupId <>", value, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidGreaterThan(Integer value) {
            addCriterion("teachingGroupId >", value, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidGreaterThanOrEqualTo(Integer value) {
            addCriterion("teachingGroupId >=", value, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidLessThan(Integer value) {
            addCriterion("teachingGroupId <", value, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidLessThanOrEqualTo(Integer value) {
            addCriterion("teachingGroupId <=", value, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidIn(List<Integer> values) {
            addCriterion("teachingGroupId in", values, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidNotIn(List<Integer> values) {
            addCriterion("teachingGroupId not in", values, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidBetween(Integer value1, Integer value2) {
            addCriterion("teachingGroupId between", value1, value2, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupidNotBetween(Integer value1, Integer value2) {
            addCriterion("teachingGroupId not between", value1, value2, "teachinggroupid");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNull() {
            addCriterion("teacherId is null");
            return (Criteria) this;
        }

        public Criteria andTeacheridIsNotNull() {
            addCriterion("teacherId is not null");
            return (Criteria) this;
        }

        public Criteria andTeacheridEqualTo(String value) {
            addCriterion("teacherId =", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotEqualTo(String value) {
            addCriterion("teacherId <>", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThan(String value) {
            addCriterion("teacherId >", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridGreaterThanOrEqualTo(String value) {
            addCriterion("teacherId >=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThan(String value) {
            addCriterion("teacherId <", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLessThanOrEqualTo(String value) {
            addCriterion("teacherId <=", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridLike(String value) {
            addCriterion("teacherId like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotLike(String value) {
            addCriterion("teacherId not like", value, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridIn(List<String> values) {
            addCriterion("teacherId in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotIn(List<String> values) {
            addCriterion("teacherId not in", values, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridBetween(String value1, String value2) {
            addCriterion("teacherId between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeacheridNotBetween(String value1, String value2) {
            addCriterion("teacherId not between", value1, value2, "teacherid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidIsNull() {
            addCriterion("teachingGroupManageId is null");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidIsNotNull() {
            addCriterion("teachingGroupManageId is not null");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidEqualTo(String value) {
            addCriterion("teachingGroupManageId =", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidNotEqualTo(String value) {
            addCriterion("teachingGroupManageId <>", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidGreaterThan(String value) {
            addCriterion("teachingGroupManageId >", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidGreaterThanOrEqualTo(String value) {
            addCriterion("teachingGroupManageId >=", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidLessThan(String value) {
            addCriterion("teachingGroupManageId <", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidLessThanOrEqualTo(String value) {
            addCriterion("teachingGroupManageId <=", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidLike(String value) {
            addCriterion("teachingGroupManageId like", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidNotLike(String value) {
            addCriterion("teachingGroupManageId not like", value, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidIn(List<String> values) {
            addCriterion("teachingGroupManageId in", values, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidNotIn(List<String> values) {
            addCriterion("teachingGroupManageId not in", values, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidBetween(String value1, String value2) {
            addCriterion("teachingGroupManageId between", value1, value2, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggroupmanageidNotBetween(String value1, String value2) {
            addCriterion("teachingGroupManageId not between", value1, value2, "teachinggroupmanageid");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionIsNull() {
            addCriterion("teachingGroupPosition is null");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionIsNotNull() {
            addCriterion("teachingGroupPosition is not null");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionEqualTo(String value) {
            addCriterion("teachingGroupPosition =", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionNotEqualTo(String value) {
            addCriterion("teachingGroupPosition <>", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionGreaterThan(String value) {
            addCriterion("teachingGroupPosition >", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionGreaterThanOrEqualTo(String value) {
            addCriterion("teachingGroupPosition >=", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionLessThan(String value) {
            addCriterion("teachingGroupPosition <", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionLessThanOrEqualTo(String value) {
            addCriterion("teachingGroupPosition <=", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionLike(String value) {
            addCriterion("teachingGroupPosition like", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionNotLike(String value) {
            addCriterion("teachingGroupPosition not like", value, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionIn(List<String> values) {
            addCriterion("teachingGroupPosition in", values, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionNotIn(List<String> values) {
            addCriterion("teachingGroupPosition not in", values, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionBetween(String value1, String value2) {
            addCriterion("teachingGroupPosition between", value1, value2, "teachinggroupposition");
            return (Criteria) this;
        }

        public Criteria andTeachinggrouppositionNotBetween(String value1, String value2) {
            addCriterion("teachingGroupPosition not between", value1, value2, "teachinggroupposition");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}